package com.fuint.module.testApi;

import com.fuint.framework.exception.BusinessCheckException;
import com.fuint.framework.web.BaseController;
import com.fuint.framework.web.ResponseObject;
import com.fuint.module.schedule.*;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;

@RestController
@AllArgsConstructor
@RequestMapping(value = "/testApi/test")
public class TestController extends BaseController {
//    private final CommissionJob commissionJob;
//    private final CouponExpireJob couponExpireJob;
//    private final MessageJob messageJob;
//    private final OrderCancelJob orderCancelJob;
//    private final UploadShippingInfoJob uploadShippingInfoJob;
//
//    @RequestMapping(value = "/schedule", method = RequestMethod.GET)
//    @CrossOrigin
//    public ResponseObject testSchedule() throws BusinessCheckException, ParseException {
//        commissionJob.dealOrder();
//        couponExpireJob.dealCoupon();
//        messageJob.dealMessage();
//        orderCancelJob.dealOrder();
//        uploadShippingInfoJob.dealOrder();
//        return getSuccessResult("");
//    }
}
